import request from '@/utils/request'

// 查询廉正举报列表
export function listLzjbinfo(query) {
  return request({
    url: '/lzjb/lzjbinfo/list',
    method: 'get',
    params: query
  })
}

// 查询廉正举报详细
export function getLzjbinfo(id) {
  return request({
    url: '/lzjb/lzjbinfo/' + id,
    method: 'get'
  })
}

// 新增廉正举报
export function addLzjbinfo(data) {
  return request({
    url: '/lzjb/lzjbinfo',
    method: 'post',
    data: data
  })
}

// 修改廉正举报
export function updateLzjbinfo(data) {
  return request({
    url: '/lzjb/lzjbinfo',
    method: 'put',
    data: data
  })
}

// 删除廉正举报
export function delLzjbinfo(id) {
  return request({
    url: '/lzjb/lzjbinfo/' + id,
    method: 'delete'
  })
}

// 导出廉正举报
export function exportLzjbinfo(query) {
  return request({
    url: '/lzjb/lzjbinfo/export',
    method: 'get',
    params: query
  })
}